package io.renren.modules.dictionary.entity;

import io.renren.common.validator.group.AddGroup;
import io.renren.common.validator.group.UpdateGroup;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;


/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-10-17 14:15:28
 */
public class DictypesEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//字典类型id
	private Integer dictypeid;
	//类型名称
	@NotBlank(message="类型名称不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private String typename;
	//类型中文名
	@NotBlank(message="类型中文名不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private String typenameinzhcn;
	//序号
	@NotNull(message = "序号不能为空",groups = {AddGroup.class, UpdateGroup.class})
	private Integer optionorder;
	//创建时间
	private Date createtime;
	//更新时间
	private Date updatetime;
	//软删除
	private Integer isdel;

	private Integer isreadonly;

	/**
	 * 获取：是否只读
	 */
	public Integer getIsreadonly() {
		return isreadonly;
	}

	/**
	 * 设置：是否只读
	 */
	public void setIsreadonly(Integer isreadonly) {
		this.isreadonly = isreadonly;
	}

	/**
	 * 设置：字典类型id
	 */
	public void setDictypeid(Integer dictypeid) {
		this.dictypeid = dictypeid;
	}
	/**
	 * 获取：字典类型id
	 */
	public Integer getDictypeid() {
		return dictypeid;
	}
	/**
	 * 设置：类型名称
	 */
	public void setTypename(String typename) {
		this.typename = typename;
	}
	/**
	 * 获取：类型名称
	 */
	public String getTypename() {
		return typename;
	}
	/**
	 * 设置：类型中文名
	 */
	public void setTypenameinzhcn(String typenameinzhcn) {
		this.typenameinzhcn = typenameinzhcn;
	}
	/**
	 * 获取：类型中文名
	 */
	public String getTypenameinzhcn() {
		return typenameinzhcn;
	}
	/**
	 * 设置：序号
	 */
	public void setOptionorder(Integer optionorder) {
		this.optionorder = optionorder;
	}
	/**
	 * 获取：序号
	 */
	public Integer getOptionorder() {
		return optionorder;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreatetime() {
		return createtime;
	}
	/**
	 * 设置：更新时间
	 */
	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}
	/**
	 * 获取：更新时间
	 */
	public Date getUpdatetime() {
		return updatetime;
	}
	/**
	 * 设置：软删除
	 */
	public void setIsdel(Integer isdel) {
		this.isdel = isdel;
	}
	/**
	 * 获取：软删除
	 */
	public Integer getIsdel() {
		return isdel;
	}
}
